package com.dahua.messagesyncsh.mapper;

import com.dahua.messagesyncsh.criteria.EquipmentQueryCriteria;
import com.dahua.messagesyncsh.entity.Equipment;
import com.dahua.messagesyncsh.entity.LatestEquipmentStatus;
import com.dahua.messagesyncsh.pojo.EquipmentInfo;
import com.dahua.messagesyncsh.criteria.EquipmentInfoQueryCriteria;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EquipmentMapper {
    List<EquipmentInfo> enquire(@Param("criteria") EquipmentInfoQueryCriteria criteria);

    List<Equipment> detail(@Param("criteria") EquipmentQueryCriteria criteria);

    void updateLatestStatus(@Param("latestStatus") LatestEquipmentStatus latestStatus);
}
